package com.uuzz.lottery.agent.gateway.flow.answer.controller;

import java.io.InputStream;
import java.io.OutputStream;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.uuzz.lottery.agent.gateway.flow.answer.mappingimpl.one2n2nimpl.top.impl.ConnectHttpProtocolIn;
import com.uuzz.lottery.agent.gateway.flow.answer.mappingimpl.one2n2nimpl.top.impl.ConnectHttpProtocolOut;
import com.uuzz.lottery.agent.gateway.flow.answer.mappingimpl.one2n2nimpl.top.impl.ConnectHttpProtocolSupport;

@Controller
public class ConnectController extends ConnectHttpProtocolSupport {

	
	@RequestMapping(method = { RequestMethod.POST })
	public  void process(InputStream is, OutputStream os,
			HttpServletRequest request, HttpServletResponse response) {
		this.call(new ConnectHttpProtocolIn(request,is), new ConnectHttpProtocolOut(response, os));
	}

}
